package com.beidu.lottery.call.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 全国行政区划代码表
 * </p>
 *
 * @author 北渡
 * @since 2023-08-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("c_admin_division")
@ApiModel(value = "AdminDivision对象", description = "全国行政区划代码表")
public class AdminDivision implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "父级id")
    private Integer parentId;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "名称")
    private String label;

    @ApiModelProperty(value = "行政区级 0:省/自治区/直辖市, 1:市级, 2:区县级, 3:乡镇级")
    private Integer level;

    @ApiModelProperty(value = "经纬度")
    private String center;


}
